package com.jinlejia.erp.ui.common;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author SongJiaTai
 * @description:Bandle存储LinkedHashMap<String, ArrayList<Map<String, Object>>>
 * @date :2020/9/7 16:11
 */
public class BundleLinkedHashMap implements Serializable, Parcelable {
    private LinkedHashMap<String, ArrayList<Map<String, Object>>> map;

    public BundleLinkedHashMap(LinkedHashMap<String, ArrayList<Map<String, Object>>> map) {
        this.map = map;
    }

    public LinkedHashMap<String, ArrayList<Map<String, Object>>> getMap() {
        return map;
    }

    public void setMap(LinkedHashMap<String, ArrayList<Map<String, Object>>> map) {
        this.map = map;
    }

    protected BundleLinkedHashMap(Parcel in) {
    }

    public static final Creator<BundleLinkedHashMap> CREATOR = new Creator<BundleLinkedHashMap>() {
        @Override
        public BundleLinkedHashMap createFromParcel(Parcel in) {
            return new BundleLinkedHashMap(in);
        }

        @Override
        public BundleLinkedHashMap[] newArray(int size) {
            return new BundleLinkedHashMap[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
    }
}
